package com.mydomain;

import lejos.nxt.Button;
import lejos.nxt.LCD;
import lejos.nxt.Motor;


/**
 * Simplest 3 motor commands
 * @author owner.GLASSEY
 *
 */
public class MotorTutor1
{
     /**
      * @param args
      */
     public static void main(String[] args)
     {
          /*
          LCD.drawString("Program 1", 0, 0);
          Button.waitForAnyPress();
          LCD.clear();
          Motor.A.forward();
          LCD.drawString("FORWARD",0,0);
          Button.waitForAnyPress();
          LCD.drawString("BACKWARD",0,0);
          Motor.A.backward();
          Button.waitForAnyPress();
          Motor.A.stop();
          */
    	 
    	 LCD.clear();
    	 LCD.drawString("A",0,0);
    	 Motor.A.setSpeed(50);
         Motor.A.forward();
         Button.waitForAnyPress();
         Motor.A.backward();
         Button.waitForAnyPress();
         Motor.A.stop();
         
         LCD.clear();
         LCD.drawString("B",0,0);
         Motor.B.setSpeed(50);
         Motor.B.forward();
         Button.waitForAnyPress();
         Motor.B.backward();
         Button.waitForAnyPress();
         Motor.B.stop();
         
         LCD.clear();
         LCD.drawString("C",0,0);
         Motor.C.setSpeed(50);
         Motor.C.forward();
         Button.waitForAnyPress();
         Motor.C.backward();
         Button.waitForAnyPress();
         Motor.C.stop();
         
     }
}
